home *** CD-ROM | disk | FTP | other *** search
- Path: whopper.chem.wisc.edu!user
- From: cheatum@chem.wisc.edu (Chris Cheatum)
- Newsgroups: comp.lang.c
- Subject: timing a pulse
- Date: Fri, 12 Jan 1996 09:37:34 -0600
- Organization: F. F. Crim Group
- Message-ID: <cheatum-1201960937340001@whopper.chem.wisc.edu>
- NNTP-Posting-Host: whopper.chem.wisc.edu
-
- Hi,
-
- I am trying to write some code on a 486/33MHz in quick C for windows by
- Microsoft that will create a pulse for me. The way it works is, I turn on
- a bit then I want to be able to wait a preset amount of time, about 1.5
- milliseconds, and the turn the bit off. I can turn the bit on and off
- fine, but the resolution I can get with all of the timing routines I have
- tried is very poor. I really need to be accurate to about .05
- milliseconds. I have found a few routines that claim to do this, but they
- all seem to incorporate assembly functions. My compiler allows inline
- assembly, but I do not have any experience with assembly, and do not know
- how to implement these routines into my code. If someone could help
- either with some code that they know works or by helping me to implement
- the code that we ahve I would really appreciate it.
-
- Thank you
- Chris
-